package com.itheima.test02.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Service;

@Service
public class OrderSerivce implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new UserService();
    }

    @Override
    public Class<?> getObjectType() {
        return UserService.class; // 配置了它 getBean时可以通过 UserService.class，不配只能通过 OrderSerivce.class 或 orderSerivce
    }
}
